package org.neuedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzw
 * @since 2024-11-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    public Employee(String realname, String password, Long deptmentId, Long registLevelId, Long schedulingId, String email, String phone, String icon) {
        this.realname = realname;
        this.password = password;
        this.deptmentId = deptmentId;
        this.registLevelId = registLevelId;
        this.schedulingId = schedulingId;
        this.email = email;
        this.phone = phone;
        this.icon = icon;
    }

    /**
     * ID主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 真实姓名
     */
    private String realname;

    /**
     * 密码
     */
    private String password;

    /**
     * 所在科室ID
     */
    private Long deptmentId;

    /**
     * 挂号级别ID
     */
    private Long registLevelId;

    /**
     * 班排id
     */
    private Long schedulingId;

    /**
     * 生效标记
     */
    private Boolean delmark;

    private String email;

    private String phone;

    private String icon;

    public Employee(Long id, Boolean delmark) {
        this.id = id;
        this.delmark = delmark;
    }
}
